// https://vitepress.dev/guide/custom-theme
import Theme from 'vitepress/theme'
import API from './API.vue'
import DemoBox from './DemoBox.vue'
import MobilePreview from './MobilePreview.vue'
import './style.css'

export default {
  extends: Theme,
  Layout: () => {
    return (
      <Theme.Layout>
        {
          {
            // https://vitepress.dev/guide/extending-default-theme#layout-slots
          }
        }
      </Theme.Layout>
    )
  },
  enhanceApp({ app, router, siteData }) {
    app.component('API', API)
    app.component('DemoBox', DemoBox)
    app.component('MobilePreview', MobilePreview)
  },
}
